import { AppUtils } from './api/AppUtils';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';
import { HTTP_INTERCEPTORS } from '@angular/common/http';

import { IonicModule, IonicRouteStrategy, Platform, NavController, ToastController } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';

import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { HttpClientModule } from '@angular/common/http';
import { ApiService } from './api/api.service';
import { ImgService } from './api/imgservice';
import { NoticeService } from './api/noticeService';
import { ApiInterceptor } from './interceptor/ApiInterceptor';
import { IonicStorageModule } from '@ionic/storage';
import { Component, enableProdMode } from '@angular/core';
import { ImagePicker } from '@ionic-native/image-picker/ngx';
import { Camera, CameraOptions } from '@ionic-native/camera/ngx';
import { FileTransfer, FileUploadOptions, FileTransferObject } from '@ionic-native/file-transfer/ngx';
import { File } from '@ionic-native/file/ngx';
import { ThemeableBrowser, ThemeableBrowserOptions, ThemeableBrowserObject } from '@ionic-native/themeable-browser/ngx';
import { CKEditorModule } from '@ckeditor/ckeditor5-angular';
import {AppMinimize} from '@ionic-native/app-minimize/ngx';
import { FileOpener } from '@ionic-native/file-opener/ngx';
enableProdMode();
@NgModule({
  declarations: [AppComponent],
  entryComponents: [],
  imports: [
    BrowserModule,
    HttpClientModule,
    CKEditorModule,
    IonicStorageModule.forRoot(),
    IonicModule.forRoot({
      backButtonText: ''
    }),
    AppRoutingModule
  ],
  providers: [
    StatusBar,
    SplashScreen,
    ApiService,
    ImgService,
    NoticeService,
    AppUtils,
    [{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
    { provide: HTTP_INTERCEPTORS, useClass: ApiInterceptor, multi: true }],
    Camera,
    File,
    ImagePicker,
    FileTransferObject,
    FileTransfer,
    ThemeableBrowser,
    FileOpener,
    Platform, NavController, ToastController,
    AppMinimize
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
